package pt.ist.meic.pava;

import java.util.ArrayList;



/**
 * @author Antonio Massingue
 * @author Joao Matos
 * @author Nuno Santos
 *
 *	This class represents a conflict between traits
 *
 */
public class Conflict {
	
	
	
	
	
	
	
	
	
	/**
	 * The name of the method in conflict
	 */
	private String name;
	
	
	/**
	 * A list with the traits involved in the conflict
	 */
	private ArrayList<String> traits;
	
	
	
	
	
	
	
	
	
	
	/**
	 * 
	 * The contructor
	 * 
	 * @param name 	The name of the method in conflict
	 * @param a		One trait involved in the conflict
	 * @param b		Another trait involved in the conflict
	 */
	public Conflict(String name, String a, String b){
		
		this.name = name;
		this.traits = new ArrayList<String>();
		this.traits.add(a);
		this.traits.add(b);
		
	}
	
	
	
	
	
	
	/**
	 * @return	The name of the method in conflict
	 */
	public String getName(){
		return this.name;
	}
	
	/**
	 * @return	The list of the traits involved in the conflict 
	 */
	public ArrayList<String> getTraits(){
		return this.traits;
	}

	/**
	 * Adds a trait to the list
	 * 
	 * @param a
	 */
	public void addTrait(String a){
		this.traits.add(a);
	}
	
	
	
	
	
	

}
